package com.glela.goods.model;
/**
 * @Description: 货品规格小图bean
 * @Author: zhangrenjie
 * @Date: 2018/2/2 16:07
 *
 */
public class GoodsSpecificationImages {
    private Long id;

    private Long specificationDetailId;

    private Long goodId;

    private String imagePath;

    private Integer productId;

    private String extends1;

    private String extends2;

    private String extends3;

    private String customQuerySqlText = null;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSpecificationDetailId() {
        return specificationDetailId;
    }

    public void setSpecificationDetailId(Long specificationDetailId) {
        this.specificationDetailId = specificationDetailId;
    }

    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath == null ? null : imagePath.trim();
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getExtends1() {
        return extends1;
    }

    public void setExtends1(String extends1) {
        this.extends1 = extends1 == null ? null : extends1.trim();
    }

    public String getExtends2() {
        return extends2;
    }

    public void setExtends2(String extends2) {
        this.extends2 = extends2 == null ? null : extends2.trim();
    }

    public String getExtends3() {
        return extends3;
    }

    public void setExtends3(String extends3) {
        this.extends3 = extends3 == null ? null : extends3.trim();
    }

    public void setCustomQuerySqlText(String customQuerySqlText) {
        this.customQuerySqlText = customQuerySqlText;
    }

    public String getCustomQuerySqlText() {
        return customQuerySqlText;
    }

    /**
     * set去重。重写hashCode、equals
     */
    @Override
    public int hashCode(){
        return specificationDetailId.hashCode();
    }

    @Override
    public boolean equals(Object obj){
        if(obj instanceof GoodsSpecificationImages){
            GoodsSpecificationImages g =(GoodsSpecificationImages)obj;
            return specificationDetailId.equals(g.specificationDetailId);
        }
        return super.equals(obj);
    }



}